USE [Capstone]
GO

/****** Object:  StoredProcedure [dbo].[InsertWebError]    Script Date: 07/22/2012 22:30:37 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

Create PROCEDURE [dbo].[InsertWebError]
	-- Add the parameters for the stored procedure here
@Message varchar(250),
@Source varchar(250),
@Form varchar(250),
@QueryString varchar(250),
@TargetSite varchar(250),
@StackTrace ntext,
@SessionKeys varchar(250)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

Insert into  
 [WebErrorLogs] 
(
 Message, Source, Form,  QueryString, TargetSite, StackTrace, SessionKeys
) 
 values 
(
 @Message, @Source, @Form, @QueryString, @TargetSite, @StackTrace, @SessionKeys
);

Select Scope_Identity();
END








GO

